<template>
	<view>
		<uv-button text="月落" @click="test"></uv-button>
		<!-- {{$t('index.home')}} -->
		<view class="w-20 h-20 bg-black"></view>
	</view>
</template>

<script setup>
import { testApi } from '@/api/test.js'
import { userListPageApi } from '@/api/user.js'
import { deviceListApi } from '@/api/device';
import { useStore } from '@/store'

const router = useRouter()
const store = useStore()

const test = async () => {
	// const res = await testApi()
	// console.log(res.code)
	// const res = await userListPageApi({
	// 	page:1,
	// 	limit:10,
	// 	realName:""
	// })
	// console.log(res)
	const res = await deviceListApi({
		page:1,
		limit:10,
		name: '配电室'
	})
	console.log(res)
	// router.push({
	// 	name:"my"
	// })
	// uni.navigateTo({
	// 	url:'/pages/my/my'
	// })
}
</script>

<style scoped>
	
</style>
